package com.github.shiqiyue.app;

import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;

/***
 *
 * @author wenyao.wu
 * @since 2020/8/5
 */
public class QueryError {


    public static void main(String[] args) {
        String url = "http://zeus.10101111.com/cat/r/querychain";
        String cookie = "CAT_DOMAINS=mmccoapi|mmcapi; JSESSIONID=1346A083F425F4E9C0A11CA395152E78; filterFlagForER=false; ldap-user=\"{\\\"admin\\\":false,\\\"authorityC\\\":false,\\\"authorityChain\\\":false,\\\"authorityL\\\":false,\\\"authorityS\\\":false,\\\"commentsProjectIds\\\":[],\\\"desName\\\":\\\"\\\",\\\"emailSuffix\\\":\\\"ucarinc.com\\\",\\\"emil\\\":\\\"wenyao.wu@ucarinc.com\\\",\\\"enbaled\\\":false,\\\"loginId\\\":\\\"wenyao.wu\\\",\\\"projectIds\\\":[132,610113,540,610112,543,610099,336,536,537,538,529,114],\\\"userName\\\":\\\"wenyao.wu\\\",\\\"xUser\\\":false}\"; zeu-project-domain=mmcapi; ucar-intranet-sid=CA5F11762C59D97BCC24C1318FCCC779; ldap-token=3axuRKJxx9%2F2IDM3dAI9tXF4voWo6%2FZh3ek8DJOXyI8zQpHfsX149F66r7v5TNilwtnQ57CXynEf%0AKXkoCWSN%2FqmTHvZjWnOSNJgVjtXiHFACSNJeB0PxEYZU25EEPKiq; ct=wenyao.wu|wenyao.wu|1596677327850|127.0.0.1|1|927962468";
        HttpRequest httpRequest = HttpRequest.get(url);
        httpRequest.header("Cookie", cookie);
        httpRequest.form("timeRange", "2020-07-01 00:00:00#2020-08-05 23:59:00");
        httpRequest.form("domain","mmcapi");
        httpRequest.form("bizData", "assignMission");
        httpRequest.form("pageNumber", 1);
        httpRequest.form("pageSize",500);
        HttpResponse httpResponse = httpRequest.execute();
        System.out.println(httpResponse.body());

    }
}
